#!/usr/bin/env bash

set -ex;cd $BIN_PATH/backups/;ls * | while read conf_name; do cp $conf_name $BIN_PATH/conf/; done; sid_id="${HOSTNAME##*-}";sed -i "s|sid=1|sid=$sid_id|g" $BIN_PATH/conf/wgns_config.conf; /tmp/start.sh